package com.ymttest.database.sqlwapper;

import java.util.List;
import java.util.Map;

import com.ymt.database.SqlManager;
import com.ymttest.utils.EnvSetup;
import com.ymt.core.tool.Logger;

public class IntegratedProductWapper {
	SqlManager manage;

	public IntegratedProductWapper() {
		manage = new SqlManager("int");
	}
	
	/**
	 * 根据商品id查找商品信息
	 * @param uid 
	 * */
	public List<Map> selectProductInfo(String sproductid){
		List<Map> list = manage.getSelectResults("com.ymttest.database.mapping.IntegratedProductMapper.selectProductInfo",sproductid);
		return list;
		
	}
	
	/**
	 * 关闭数据库连接
	 */
	public void close() {
		manage.close();
	}

	@Override
	protected void finalize() throws Throwable {
		this.close();
		manage = null;
		super.finalize();
	}

	public static void main(String args[]) {
		
		List<Map> aa = new IntegratedProductWapper().selectProductInfo("84eded60-98c5-4591-bf06-191ccb8427e5");
		Logger.debug(aa);
		
		

	}
	
}
